package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbPersonalPictureManageMapper;
import com.ruoyi.system.domain.TbPersonalPictureManage;
import com.ruoyi.system.service.ITbPersonalPictureManageService;

/**
 * 图片保存Service业务层处理
 * 
 * @author xiaosiyuan
 * @date 2021-11-15
 */
@Service
public class TbPersonalPictureManageServiceImpl implements ITbPersonalPictureManageService 
{
    @Autowired
    private TbPersonalPictureManageMapper tbPersonalPictureManageMapper;

    /**
     * 查询图片保存
     * 
     * @param id 图片保存主键
     * @return 图片保存
     */
    @Override
    public TbPersonalPictureManage selectTbPersonalPictureManageById(String id)
    {
        return tbPersonalPictureManageMapper.selectTbPersonalPictureManageById(id);
    }

    /**
     * 查询图片保存列表
     * 
     * @param tbPersonalPictureManage 图片保存
     * @return 图片保存
     */
    @Override
    public List<TbPersonalPictureManage> selectTbPersonalPictureManageList(TbPersonalPictureManage tbPersonalPictureManage)
    {
        return tbPersonalPictureManageMapper.selectTbPersonalPictureManageList(tbPersonalPictureManage);
    }

    /**
     * 新增图片保存
     * 
     * @param tbPersonalPictureManage 图片保存
     * @return 结果
     */
    @Override
    public int insertTbPersonalPictureManage(TbPersonalPictureManage tbPersonalPictureManage)
    {
        return tbPersonalPictureManageMapper.insertTbPersonalPictureManage(tbPersonalPictureManage);
    }

    /**
     * 修改图片保存
     * 
     * @param tbPersonalPictureManage 图片保存
     * @return 结果
     */
    @Override
    public int updateTbPersonalPictureManage(TbPersonalPictureManage tbPersonalPictureManage)
    {
        return tbPersonalPictureManageMapper.updateTbPersonalPictureManage(tbPersonalPictureManage);
    }

    /**
     * 批量删除图片保存
     * 
     * @param ids 需要删除的图片保存主键
     * @return 结果
     */
    @Override
    public int deleteTbPersonalPictureManageByIds(String[] ids)
    {
        return tbPersonalPictureManageMapper.deleteTbPersonalPictureManageByIds(ids);
    }

    /**
     * 删除图片保存信息
     * 
     * @param id 图片保存主键
     * @return 结果
     */
    @Override
    public int deleteTbPersonalPictureManageById(String id)
    {
        return tbPersonalPictureManageMapper.deleteTbPersonalPictureManageById(id);
    }
}
